package com.ads.tpgrupo4.domain.cpr.stock;

import javax.persistence.DiscriminatorColumn;
import javax.persistence.DiscriminatorType;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;

import com.ads.tpgrupo4.domain.cpr.core.PersistentObject;

@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
@DiscriminatorColumn(name="tipoStock", discriminatorType=DiscriminatorType.STRING)
@Entity
public abstract class Stock extends PersistentObject {

	private static final long serialVersionUID = 1L;
	
	protected TipoDeStock tipo;
	
	protected Integer cantidad;
	
	protected String descripcion;

	public TipoDeStock getTipo() {
		return tipo;
	}

	public void setTipo(TipoDeStock tipo) {
		this.tipo = tipo;
	}

	public String getDescripcion() {
		return descripcion;
	}

	public void setDescripcion(String descripcion) {
		this.descripcion = descripcion;
	}
		
}
